package com.zyk.scaffold.user.mail.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@Component
@RefreshScope
@ConfigurationProperties(prefix = "local.mail")
public class LocalMailProperties {
    private String useName;
    private Boolean refreshPassword = false;
    private String sendEmail;
    private String subjectPrefix;
    private List<MailApp> mailApps;
    private List<MailServer> mailServers;
    private Map<String, String> template;
}
